<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <script src="https://cdn.tailwindcss.com"></script>
    <link href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.7.2/css/all.min.css" rel="stylesheet">
    <title>跳动的粉色爱心</title>
    <style>
        body {
            display: flex;
            justify-content: center;
            align-items: center;
            height: 100vh;
            margin: 0;
            background-color: #000;
        }

       .heart {
            position: relative;
            width: 200px;
            height: 200px;
            background-color: #ff69b4;
            transform: rotate(-45deg);
            animation: heartbeat 1.5s infinite ease-in-out alternate;
            box-shadow: 0 0 50px #ff69b4;
        }

       .heart::before,
       .heart::after {
            content: "";
            position: absolute;
            width: 200px;
            height: 200px;
            background-color: #ff69b4;
            border-radius: 50%;
        }

       .heart::before {
            top: -100px;
            left: 0;
        }

       .heart::after {
            left: 100px;
            top: 0;
        }

        @keyframes heartbeat {
            0% {
                transform: rotate(-45deg) scale(1);
                box-shadow: 0 0 20px #ff69b4;
            }
            100% {
                transform: rotate(-45deg) scale(1.1);
                box-shadow: 0 0 80px #ff69b4;
            }
        }

       .sparkle {
            position: absolute;
            width: 5px;
            height: 5px;
            background-color: #fff;
            border-radius: 50%;
            opacity: 0;
            animation: sparkle 1.5s infinite ease-in-out;
        }

        @keyframes sparkle {
            0% {
                opacity: 0;
                transform: scale(0);
            }
            50% {
                opacity: 1;
                transform: scale(1);
            }
            100% {
                opacity: 0;
                transform: scale(0);
            }
        }
    </style>
</head>

<body>
    <div class="heart">
        <!-- 生成一些闪烁的星星特效 -->
        <div class="sparkle" style="top: 20%; left: 20%; animation-delay: 0.2s;"></div>
        <div class="sparkle" style="top: 30%; left: 70%; animation-delay: 0.4s;"></div>
        <div class="sparkle" style="top: 60%; left: 10%; animation-delay: 0.6s;"></div>
        <div class="sparkle" style="top: 70%; left: 80%; animation-delay: 0.8s;"></div>
        <div class="sparkle" style="top: 40%; left: 50%; animation-delay: 1s;"></div>
    </div>
</body>

</html>